require('es6-promise').polyfill();
import { app, store } from './app'

// prime the store with server-initialized state.
// the state is determined during SSR and inlined in the page markup.
if (typeof window !== 'undefined' &&
  (<any>window).__INITIAL_STATE__ !== undefined) store.replaceState((<any>window).__INITIAL_STATE__)

// actually mount to DOM
app.$mount('#app')
